package com.youlu.campus.entity;

import com.youlu.campus.base.base.EntityBase;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

@Getter
@Setter
@Document(collection = "order_shipping_task_detail")
public class OrderShippingTaskDetail extends EntityBase {
    @Indexed
    private String orderShippingTaskId;
    /**
     * 订单编号
     */
    @Indexed
    protected String orderNo;
    /**
     * 物流公司,B列
     */
    private String logisticsCompany;
    /**
     * 物流编号,C列
     */
    private String logisticsNo;
    /**
     * 手机号
     */
    protected String mobile;
    /**
     * 子订单编号
     */
    @Indexed
    protected String suborderNo;
    /**
     * 是否补发
     */
    protected Boolean postSale;
    /**
     * 操作物流公司
     */
    private String optLogisticsCompany;
    /**
     * 操作物流编号
     */
    private String optLogisticsNo;
    /**
     * 操作订单状态
     */
    private String orderStatus;
    /**
     * 售后状态,0:无售后,1:补发中,2:换货中
     */
    private String optPostSaleStatus = "0";
    /**
     * 售后物流公司
     */
    private String optPostSaleLogisticsCompany;
    /**
     * 售后物流编号
     */
    private String optPostSaleLogisticsNo;

    /**
     * 发货地址
     */
    private String from;
}
